<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:jsf="http://xmlns.jcp.org/jsf"
>
<h:head/>

<h:messages/>

<body>
<p>
    Custom Form-based Authentication
</p>

<form jsf:id="form">
    <p>
        <strong>Username</strong>
        <input jsf:id="username" type="text" jsf:value="#{loginBean.username}"/>
    </p>
    <p>
        <strong>Password</strong>
        <input jsf:id="password" type="text" jsf:value="#{loginBean.password}"/>
    </p>
    <p>
        <input type="submit" value="Login" jsf:action="#{loginBean.login}"/>
    </p>
</form>

</body>

</html>
